<?php
/**
 * 通用文件
 */

include_once G_OSGH_ROOT.'../pl_common/common.inc.php';

/**
 * 加载类
 */
include_once G_OSGH_ROOT.'include/entity_class/osgh_admin_log_tbl.cls.php';

/**
 * 自动加载函数
 * string $classname 类名，统一命名规则为name1_name2_cls,即若干个  类名后面跟下划线，最后加cls
 * string $filename  文件名，统一命名规则为name1_name2.cls.php
 */
if ( !function_exists('wushangmol_spl_autoload') )
{
	function wushangmol_spl_autoload($classname)
	{
		$filename = substr($classname, 0, -4).'.cls.php';
		if (file_exists(G_OSGH_ROOT."include/entity_class/$filename"))
		{
			include_once G_OSGH_ROOT."include/entity_class/$filename";
		}
		elseif (file_exists(G_OSGH_ROOT."include/model_class/$filename"))
		{
			include_once G_OSGH_ROOT."include/model_class/$filename";
		}
	}
	
	spl_autoload_register("wushangmol_spl_autoload");
}

//数据库名称
global $_db_name;
$_db_name = 'a1227163231';

//用户IP
global $_client_ip;
$_client_ip = pl_onlineip();


?>